<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>登录</title>
		<style type="text/css">
			#errorMsg{
				color:red;
				margin: 100px auto 200px;
			}
		</style>
	</head>
	<body>
		<div id="wrap">
			{%if !empty($login_result)%}
			<div id="errorMsg">
				{%$login_result|escape:'html'%}
			</div>
			{%/if%}
			<form id="login-form" action="/blog/index.php?r=site/login" method="post">
				<div>
					<label for="username">用户名</label>
					<input id="username" name="username" type="text" />
				</div>
				<div>
					<label for="passwd">密码</label>
					<input id="passwd" name="passwd" type="password" />
				</div>
				<div>
					<input type="submit" value="登录" />
				</div>
			</form>
		</div>
	</body>
</html>